package com.gtt.jr.app.domain;

/**
 * 集装箱类别VO
 * 
 * @author 高甜甜(gao12581@sina.com)
 * @date 2010-8-29
 * 
 */
public class TypeVO {

	private Long id;
	private String name;

	public TypeVO() {
		super();
	}

	public TypeVO(Long id) {
		super();
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public boolean equals(Object obj) {
		return obj != null && obj instanceof TypeVO
				&& ((TypeVO) obj).getId().equals(this.getId());
	}

	@Override
	public int hashCode() {
		return this.id.hashCode();
	}

	@Override
	public String toString() {
		return id + ":" + name;
	}

}
